<%@ Control Language="VB" AutoEventWireup="false" CodeFile="QueryTrainingRegister.ascx.vb"
    Inherits="WebForm_QueryTrainingRegister" %>
<My:MyGridView ID="GV" SkinID="pager" runat="server" DataKeyNames="Id" AllowHoverSelect="False"
    AutoGenerateColumns="False" MySortDirection="Ascending" MouseOverColor="Yellow"
    AllowHoverEffect="False" meta:resourcekey="gv" AllowPaging="True" 
    AllowSorting="True">
    <Columns>
        <%--<asp:BoundField DataField="GroupName" HeaderText="<%$ Resources:GroupName %>"/>
<asp:BoundField DataField="CourseName" HeaderText="<%$ Resources:CourseName %>"/>
<asp:BoundField DataField="ClassPlace" HeaderText="<%$ Resources:ClassPlace %>"/>
<asp:BoundField DataField="TeacherName" HeaderText="<%$ Resources:TeacherName %>"/>
<asp:BoundField DataField="Org" HeaderText="<%$ Resources:Org %>"/>
<asp:BoundField DataField="Hour" HeaderText="<%$ Resources:Hour %>"/>  --%>
  <asp:TemplateField meta:resourcekey="bfCourseStartDate">
            <ItemTemplate>
                  <%#Eval("StartDate", "{0:yyyy/MM/dd}")%>~<%#Eval("EndDate", "{0:yyyy/MM/dd}")%>
            </ItemTemplate>            
        </asp:TemplateField>
        <asp:BoundField DataField="GroupName" HeaderText="<%$ Resources:GroupName %>" />
        <asp:BoundField DataField="RegisterCount" HeaderText="<%$ Resources:RegisterCount %>" />
<%--        <asp:BoundField DataField="PersonLimit" HeaderText="<%$ Resources:PersonLimit %>" />
        <asp:BoundField DataField="Candidate" HeaderText="<%$ Resources:Candidate %>" />
--%>        <asp:TemplateField meta:resourcekey="bfCourseCount">
            <ItemTemplate>
                <%#Eval("PersonLimit") %> <%--/ <%#Eval("Candidate") %>--%>
            </ItemTemplate>            
        </asp:TemplateField>
        
<%--        <asp:BoundField DataField="AllHour" HeaderText="<%$ Resources:AllHour %>" />
--%>        <%--<asp:BoundField DataField="StartDate" HeaderText="<%$ Resources:StartDate %>" DataFormatString="{0:d}" SortExpression="StartDate" />--%>
                <asp:TemplateField HeaderText="<%$ Resources:StartDate %>" SortExpression="RegStartDate">
            <itemtemplate>
                <%#Eval("RegStartDate", "{0}")%>~<%#Eval("RegEndDate", "{0}")%>
            </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
        <asp:BoundField DataField="ClassPlace" HeaderText="<%$ Resources:ClassPlace %>" SortExpression="ClassPlace" />
        <asp:BoundField DataField="OrganizationName" HeaderText="<%$ Resources:OrganizationName %>" SortExpression="UOrganizationID" />
        <asp:BoundField DataField="Org" HeaderText="<%$ Resources:Org %>" SortExpression="Org" />
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton ID="lbtnEdit" runat="server" Text="<%$ Resources:Edit %>" CommandName="Select"></asp:LinkButton>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="BLL_Select" TypeName="BLL_QueryTrainingRegister">
    <SelectParameters>
        <asp:Parameter Name="LoginUser" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
